Ensure gc clip region valid in _gdk_gc_update_context
authorAlexander Larsson <alexl@redhat.com>
Fri, 4 Sep 2009 13:59:22 +0000 (15:59 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 4 Sep 2009 14:06:51 +0000 (16:06 +0200)
There might be an old drawable clip on it, if so remove it.

gdk/gdkgc.c

index e721ff5655a8a978f53df49cea470fdad71f56e5..44c2aa7aae62eb61cf39cbb677f6318a1c9ec421 100644 (file)
@@ -1396,6 +1396,8 @@ _gdk_gc_update_context (GdkGC          *gc,
 
   priv = GDK_GC_GET_PRIVATE (gc);
 
+  _gdk_gc_remove_drawable_clip (gc);
+
   fill = priv->fill;
   if (override_stipple && fill != GDK_OPAQUE_STIPPLED)
     fill = GDK_STIPPLED;